package com.spms.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spms.entity.Practice;
import com.spms.entity.Student;
import com.spms.mapper.StudentMapper;
import com.spms.service.StudentSercive;

@Service
public class StudentServiceImpl implements StudentSercive {
	
	@Autowired
	private StudentMapper studentmapper;
	

	@Override
	public List<Practice> FindMyPractice(int s_id) {
		// TODO Auto-generated method stub
		return studentmapper.FindMyPractice(s_id);
	}

	@Override
	public List<Practice> FindAllPractice(String address, String teacher_name) {
		// TODO Auto-generated method stub
		return studentmapper.FindAllPractice(address,teacher_name);
	}

	@Override
	public Student Login(String user_name, String user_password) {
		// TODO Auto-generated method stub
		return studentmapper.Login(user_name, user_password);
	}

	@Override
	public int Register(Student student) {
		// TODO Auto-generated method stub
		return studentmapper.Register(student);
	}

	@Override
	public int InsertPractice(int s_id, int p_id,int t_id) {
		// TODO Auto-generated method stub
		return studentmapper.InsertPractice(s_id, p_id,t_id);
	}

	@Override
	public int DeletePractice(int pd_id) {
		// TODO Auto-generated method stub
		return studentmapper.DeletePractice(pd_id);
	}

	@Override
	public int InsertThink(int s_id, int p_id, String think) {
		// TODO Auto-generated method stub
		return studentmapper.InsertThink(s_id,p_id,think);
	}
	
	@Override
	public Student queryInfo(int s_id){
		// TODO Auto-generated method stub
		return studentmapper.queryInfo(s_id);
	}
	
	
}	
